﻿@using KRM.Core
@model tblBook
<div class="form-horizontal">
    <div class="form-body alert note-info" >
        @*<h3 class="form-section" style="margin-top: 0px">Request Info </h3>*@
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4">Name:</label>
                    <div class="col-md-8">
                        <p class="form-control-static">@Model.tblPersonalRequest.FullName</p>
                    </div>
                </div>
            </div>
             <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4">Status:</label>
                    <div class="col-md-8 book-status" >
                                @{
                                    var statusclass = "";
                                    switch (Model.tblBookStatu.Id)
                                    {
                                        case (int) BookStatus.Pending: 
                                            statusclass = "label label-bookstatus-pending";
                                            break;
                                        case (int) BookStatus.Accepted:
                                            statusclass = "label  label-bookstatus-accepted";
                                            break;
                                        case (int) BookStatus.Declined: 
                                            statusclass = "label  label-bookstatus-declined";
                                            break;
                                        case (int) BookStatus.Canceled: 
                                            statusclass = "label  label-bookstatus-canceled";
                                            break;
                                        default:
                                         statusclass = "label  label-default";
                                            break;
                                    }
                                }
                    <span class="@statusclass">@Model.tblBookStatu.Name</span>
                    </div>
                </div>
            </div>
            <!--/span-->
           
            <!--/span-->
        </div>
        <!--/row-->
        <div class="row">
             <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4">Type:</label>
                    <div class="col-md-8">
                        <p class="form-control-static">@Model.tblBookType.Name</p>
                    </div>
                </div>
            </div>
            <!--/span-->
             <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4">Date Created:</label>
                    <div class="col-md-8">
                        <p class="form-control-static">@Model.DateCreated</p>
                    </div>
                </div>
            </div>
            
            <!--/span-->
        </div>
        <!--/row-->        
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4">Start Date:</label>
                    <div class="col-md-8">
                        <p class="form-control-static">@Model.StartDate.ToString("MM/dd/yyyy")</p>
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4">End Date:</label>
                    <div class="col-md-8">
                        <p class="form-control-static">@Model.EndDate.ToString("MM/dd/yyyy")</p>
                    </div>
                </div>
            </div>

        </div>
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4">Reason:</label>
                    <div class="col-md-8">
                        <p class="form-control-static">@Model.Reason</p>
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4">Department:</label>
                    <div class="col-md-8">
                        <p class="form-control-static">@(Model.tblPersonalRequest.Department==null?"":Model.tblPersonalRequest.Department.DepartmentName)</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
